usb: mass-storage: Build warning fixes for 64-bit
authorThierry Reding <[email protected]>
Fri, 20 Mar 2015 11:41:25 +0000 (12:41 +0100)
committerMarek Vasut <[email protected]>
Tue, 14 Apr 2015 03:47:48 +0000 (05:47 +0200)
Fix a printf format mismatch warning seen on 64-bit builds.

Cc: Ɓukasz Majewski <[email protected]>
Cc: Marek Vasut <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
Tested-by: Lukasz Majewski <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
drivers/usb/gadget/f_mass_storage.c

index e045957d07238862f23c80cd7e90845ae14e8447..71fd49db7f246df33a602f42cfcda0d50d74bcec 100644 (file)
@@ -973,7 +973,7 @@ static int do_write(struct fsg_common *common)
 
                        /* If an error occurred, report it and its position */
                        if (nwritten < amount) {
-                               printf("nwritten:%d amount:%d\n", nwritten,
+                               printf("nwritten:%zd amount:%u\n", nwritten,
                                       amount);
                                curlun->sense_data = SS_WRITE_ERROR;
                                curlun->info_valid = 1;